package dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import pojo.Book;
import pojo.Shopping;

import java.util.List;

public interface ShoppingMapper {
    @ResultMap("shoppingResultMap")
    List<Shopping> selectShopping(@Param("username") String username);

    int addShopping(@Param("userId") long userId,
                    @Param("bookName") String bookName,
                    @Param("author") String author,
                    @Param("price") double price,
                    @Param("imageName") String imageName,
                    @Param("bookId") String bookId);
    int deleteShopping(@Param("id") String id);
}
